<!--
 * @Author: HeAo
 * @Date: 2021-10-09 14:17:44
 * @LastEditTime: 2021-10-09 14:30:44
 * @LastEditors: HeAo
 * @Description: 
 * @FilePath: \web2103-2105\web2103code\3-2-Vue\day02\1-事件传参.html
 * 别乱动！
-->
<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="../js/vue.js"></script>
</head>

<body>
  <div id="app">
    <button @click="clickHandler(1,$event)">按钮1</button>
  </div>
  <script>
    let vm = new Vue({
      el: '#app',
      data: {},
      methods: {
        clickHandler(num, event) {
          event.prventDefault()
          console.log(num, event.target);
        }
      },
      created() { }
    })
  </script>
</body>

</html>